import Cookies from 'js-cookie'

const TokenKey = 'vue_admin_template_token'
// 获取Cookie的token数据
export function getToken() {
  return Cookies.get(TokenKey)
}
// 把token 添加到 Cookies里
export function setToken(token) {
  return Cookies.set(TokenKey, token)
}
//清除Cookies的token数据
export function removeToken() {
  return Cookies.remove(TokenKey)
}
